package com.example.shopping.mapper;

import com.example.shopping.entity.Admin;
import com.example.shopping.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper {
    //根据account查看用户
    public Admin getUserByAccount(String account);

    // 修改管理员密码
    int updatePassword(String account, String newPassword);

    List<User> getAllUser();

    List<User> getAllUserByPage(int offset, int pageSize);

    long count();
}
